package valueTrans.test;

import java.util.Date;

public class Bean implements Cloneable {//对象克隆，必须实现该接口
    private Date date;
    private String title;

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    @Override
    protected Object clone() {
        try {
            return super.clone();
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
            return null;
        }
    }

    @Override
    public String toString() {
        return "Bean [date=" + date + ", title=" + title + "]";
    }

}
